<?php
/* @var $this ClassificationController */
/* @var $model Classification */

$this->breadcrumbs=array(
	'Classifications'=>array('index'),
	'Manage',
);

$this->menu=array(
	array('label'=>'List Classification', 'url'=>array('index')),
	array('label'=>'Create Classification', 'url'=>array('create')),
);

Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$('#classification-grid').yiiGridView('update', {
		data: $(this).serialize()
	});
	return false;
});
");
?>

<h1>Manage Classifications</h1>

<p>
You may optionally enter a comparison operator (<b>&lt;</b>, <b>&lt;=</b>, <b>&gt;</b>, <b>&gt;=</b>, <b>&lt;&gt;</b>
or <b>=</b>) at the beginning of each of your search values to specify how the comparison should be done.
</p>

<?php echo CHtml::link('Advanced Search','#',array('class'=>'search-button')); ?>
<div class="search-form" style="display:none">
<?php $this->renderPartial('_search',array(
	'model'=>$model,
)); ?>
</div><!-- search-form -->

<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'classification-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'columns'=>array(
		'id',
		'classroom',
		'other',
		'no_of_door',
		'direction',
		'angle_of_swing',
		/*
		'width',
		'units_of_measurement_of_the_width',
		'window_opening_provided',
		'wop_width',
		'units_of_measurement_of_the_wop_width',
		'wop_height',
		'units_of_measurement_of_the_wop_height',
		'occupancy_classification',
		'health_type',
		'any_renovation',
		'industrial_type',
		'class',
		'windowless',
		'underground',
		'miscellaneous_type',
		'fire_alarm_provided',
		'smoke_or_heat_detector_provided',
		'ac_or_dc_emergency_light_provided',
		'first_aid_fire_protection',
		'lightning_protection_protected',
		'grounding_system_provided',
		'type_of_exit_required',
		'door',
		'residential_type',
		'storage_type',
		'content',
		'height_of_stack',
		'storage_tank_or_container_installation',
		'no_of_tank',
		'distance_from_adjoining_building',
		'property_line',
		'between_tanl',
		'dike_or_catch_basin_provided',
		'inspection_id',
		*/
		array(
			'class'=>'CButtonColumn',
		),
	),
)); ?>
